#!/bin/bash

if [ ! -f $1 ]; then
  echo "#!/bin/bash" > $1
fi

while [ 1 ];
  do
    vim  $1
    chmod 755 $1
    ./$1
    read input
done
